package com.young.interfaces.log.model;

/**
 * 接口监控指标传输对象
 * Created by Administrator on 2019/7/7.
 */
public class ApiMonitorDTO {
    private String key;//方法key
    private String appName;//方法key
    private long minute;//分钟时间,例如:201907022129
    private Long tp50;//TP50
    private Long tp90;//TP90
    private Long tp99;//TP99
    private Long tp999;//TP999
    private Long minMs;//最短耗时
    private Long maxMs;//最长耗时
    private Long avgMs;//平均耗时
    private Float availability;//可用率
    private Long callNum;//调用次数
    private String serverIp;//服务器ip

    @Override
    public String toString() {
        return "ApiMonitorDTO{" +
                "key='" + key + '\'' +
                ", appName='" + appName + '\'' +
                ", minute=" + minute +
                ", tp50=" + tp50 +
                ", tp90=" + tp90 +
                ", tp99=" + tp99 +
                ", tp999=" + tp999 +
                ", minMs=" + minMs +
                ", maxMs=" + maxMs +
                ", avgMs=" + avgMs +
                ", availability=" + availability +
                ", callNum=" + callNum +
                ", serverIp='" + serverIp + '\'' +
                '}';
    }

    public String getAppName() {
        return appName;
    }

    public void setAppName(String appName) {
        this.appName = appName;
    }

    public Long getCallNum() {
        return callNum;
    }

    public void setCallNum(Long callNum) {
        this.callNum = callNum;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public long getMinute() {
        return minute;
    }

    public void setMinute(long minute) {
        this.minute = minute;
    }

    public Long getTp50() {
        return tp50;
    }

    public void setTp50(Long tp50) {
        this.tp50 = tp50;
    }

    public Long getTp90() {
        return tp90;
    }

    public void setTp90(Long tp90) {
        this.tp90 = tp90;
    }

    public Long getTp99() {
        return tp99;
    }

    public void setTp99(Long tp99) {
        this.tp99 = tp99;
    }

    public Long getTp999() {
        return tp999;
    }

    public void setTp999(Long tp999) {
        this.tp999 = tp999;
    }

    public Long getMinMs() {
        return minMs;
    }

    public void setMinMs(Long minMs) {
        this.minMs = minMs;
    }

    public Long getMaxMs() {
        return maxMs;
    }

    public void setMaxMs(Long maxMs) {
        this.maxMs = maxMs;
    }

    public Long getAvgMs() {
        return avgMs;
    }

    public void setAvgMs(Long avgMs) {
        this.avgMs = avgMs;
    }

    public Float getAvailability() {
        return availability;
    }

    public void setAvailability(Float availability) {
        this.availability = availability;
    }

    public String getServerIp() {
        return serverIp;
    }

    public void setServerIp(String serverIp) {
        this.serverIp = serverIp;
    }
}
